
<%@page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@page import="com.google.appengine.api.blobstore.BlobstoreService"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<!--[if lt IE 7]>
		<link rel="stylesheet" type="text/css" href="/menu/includes/ie6.css" media="screen"/>
	<![endif]-->
        <script type="text/javascript" src="../js/jquery-1.5.1.js"></script>
        <script type="text/javascript" src="../js/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../js/jquery.ui.datepicker.js"></script>
        <script type="text/javascript" src="../js/wyzz.js"></script>
    <link  type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"/>
    <style type="text/css">
        @import "../css/main.css";
        @import "../css/wyzzstyles/style.css";
        @import "../css/wyzzstyles/editarea.css";
        @import "../css/menu.css";
        @import "../menu/menu_style.css";
        @import "../css/VanBanDen.css";
        @import "../css/jquery.ui.datepicker.css";
        @import "../css/jquery.ui.theme.css";
        .ui-widget{font-size:0.7em;}
        .ui-helper-hidden-accessible{clip:auto;}
    </style>
<%
    BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>
    <script>
	$(function() {
		$( ".datepicker" ).datepicker();
	});
        
    </script>
    <script type="text/javascript">
            function getFileName(fName)
            {
                fullName = fName;
                shortName = fullName.match(/[^\/\\]+$/);
                document.forms.Form1.dispName.value = shortName
                alert(shortName);
            }
            function popitup(url) {newwindow=window.open(url,'upload','height=100,width=400');
                if (window.focus) {newwindow.focus()}
                if (window.close())
                {

                }
                return false;
            }
    </script>

    <title>Nhập văn bản đến</title>
  </head>

  <body>
    <%@include file="../header.jsp" %>
    <%
            // user don't have permision to view this page
            if (account.getRole().equals("user"))
            {
                out.println("<script type=\"text/javascript\">alert(\"you don't have permision to view this page\")</script>");
                out.println("<script type=\"text/javascript\">window.location = \"DisplayIDoc.jsp\"</script>");
                // window.location = url;
                //response.sendRedirect("DisplayODoc.jsp");
            }
    %>
    <div id="vbd">
    Nhập thông tin văn bản đến
    </div>
    <div id="vanbanden">
    	<form name="form1" action="/idoc" method="post" id="form1">
            <input type="hidden" name="action" value="add"/>
                <table width="930" height="491" border="0" align="center" id="table">
                <tbody>
                <tr>
                  <td width="129" height="32">Số văn bản đến</td>
                  <td width="175"><input type="text" name="txtPubNum" id="txtSoVBDen"></td>
                  <td width="119">Số ghi sổ</td>
                  <td width="173"><input type="text" name="txtReceiveNum" id="txtSoGhiSo"></td>
                  <td width="128">Ngày đến</td>
                  <td width="180">
                      <input class="datepicker" name="txtReceiveDate" type="text"></td>
                </tr>
                <tr>
                  <td height="29">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>Trả lời VB số</td>
                  <td><input type="text" name="txtODocID" id="txtTraLoiVBSo"></td>
                  <td>Ngày phát hành</td>
                  <td><input class="datepicker" name="txtPubDate" type="text"></td>
                </tr>
                <tr>
                  <td height="68">Tựa đề</td>
                  <td colspan="5">
                  <textarea name="txtSubject" id="multilineTuaDe"></textarea></td>
                </tr>
                <tr>
                    <td height="125" valign="middle" >Nội dung tóm tắt</td>
                  <td colspan="5"><textarea name="txtBriefContent" id="test"></textarea>
                   <script language="javascript1.2" >
                        make_wyzz('test');
                   </script>

                  </td>
                </tr>
                <tr>
                  <td height="125"  valign="middle" >Ghi chú</td>
                  <td colspan="5">
                      <textarea name="txtNotes" id="test1" >
                   
                      </textarea>
                       <script language="javascript1.2" >
                        make_wyzz('test1');
                        </script>
                  </td>
                </tr>
                <tr>
                  <td height="31">Tài liệu đính kèm</td>
                  <td colspan="3">
                      <input type="text" name="fname" value=""/>
                      <a href="../upload.jsp" onclick="return popitup('../upload.jsp')">Upload File</a>
                  </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td height="31">Người ký</td>
                  <td colspan="2">                    
                      <input type="text" name="txtSignByName" id="txtNguoiKy">
                  </td>
                  <td>
                      <input type="hidden" name="txtAccountID" value="<% out.println(account.getId()); %>" />
                  </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                
                <tr>
                  <td>&nbsp;</td>
                  <td height="36" colspan="2">
                      <input type="submit" name="btnSave" id="button" value="Lưu">
                      &nbsp;&nbsp;&nbsp;
                      <input type="submit" name="btnCancel" id="button" value="Trở về">
                  </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  
                </tr>
                </tbody>
              </table>
      </form>
    </div>
  </body>
</html>

